package com.htjc.integral.exchange.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.htjc.integral.exchange.service.IAccountManagerService;
import com.htjc.integral.exchange.service.IPartnerRegisterService;
import com.htjc.integral.model.exchange.EcPartner;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "exchangeLogger")
@Service
public class AccountManagerServiceImpl implements IAccountManagerService {
	
	@Autowired
	private IPartnerRegisterService partnerRegisterService;
	/**
	 * 初始化会员基本信息
	 * @param userid 用户的id
	 * @return EcPartner   用户实体对象
	 * @throws Exception
	 */
	@Override
	public EcPartner  getUserInfos(String userid)
			throws Exception {
		EcPartner parttner = partnerRegisterService.getPartnerByUserId(userid);
		if(parttner!=null){
			return parttner;
		}
		return null;
	}
}
